package com.tjl.freme.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tjl.frame.entity.Authority;
import com.tjl.freme.dao.AuthorityDao;
import com.tjl.freme.service.AuthorityService;
@Transactional()
@Service("AuthorityService")
public class AuthorityServiceImpl implements AuthorityService {

	@Autowired
	private AuthorityDao dao;
	@Override
	public void save(Authority Object) throws Exception {
		dao.save(Object);
		
	}

	@Override
	public void delete(Authority Object) throws Exception {
		dao.delete(Object);
		
	}

	@Override
	public void update(Authority Object) throws Exception {
		dao.update(Object);
		
	}

	@Override
	public List<Authority> findAll() throws Exception {
		// TODO Auto-generated method stub
		return dao.findAll();
	}

}
